<template>
  <div>
    <el-alert type="info" show-icon :closable="false">
      对公司名称、公司地址、营业执照、公司地区的更新，将使得公司资料被重新审核，请谨慎修改
    </el-alert>

    <el-form label-width="120px" style="margin-top: 30px">
      <el-form-item label="公司名称">
        <el-input
          v-model="formData.name"
          disabled
        />
      </el-form-item>
      <el-form-item label="公司地址">
        <el-input
          v-model="formData.companyAddress"
          disabled
        />
      </el-form-item>
      <el-form-item label="邮箱">
        <el-input
          v-model="formData.mailbox"
          disabled
        />
      </el-form-item>
      <el-form-item label="备注">
        <el-input
          v-model="formData.remarks"
          type="textarea"
          :rows="3"
          disabled
          style="width:400px"
        />
      </el-form-item>
    </el-form>
  </div>

</template>

<script>
import { getCompany } from '@/api/company'

export default {
  name: 'CompanyInfo',
  data() {
    return {
      formData: {
        name: '',
        companyAddress: '',
        mailbox: '',
        remarks: ''
      }
    }
  },
  async created() {
    const res = await getCompany()
    this.formData = res[0]
  },
  methods: {}
}
</script>

<style scoped lang='less'>

</style>
